package music

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"os"
	"owl"
)

type ResumeController struct {
	stage *owl.Stage
}

func NewMusicController(stage *owl.Stage) *ResumeController {
	return &ResumeController{
		stage: stage,
	}
}

func (i *ResumeController) Resume(c *gin.Context) {

	content, _ := os.ReadFile(i.stage.ResourcePath() + "/" + "resume.md")
	c.JSON(http.StatusOK, string(content))
}
